<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>${fns:getConfig('productName')}</title>
    <meta name="decorator" content="blank"/><c:set var="tabmode" value="${empty cookie.tabmode.value ? '0' : cookie.tabmode.value}"/>
    <c:if test="${tabmode eq '1'}"><link rel="Stylesheet" href="${ctxStatic}/jerichotab/css/jquery.jerichotab.css" />
    <script type="text/javascript" src="${ctxStatic}/jerichotab/js/jquery.jerichotab.js"></script></c:if>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="favicon.ico">
    <link rel="stylesheet" href="${ctxStatic}/layui/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${ctxStatic}/layui/css/index.css" media="all" />
</head>
<body class="main_body">
    <div class="layui-layout layui-layout-admin">
        <!-- 顶部 -->
        <div class="layui-header header">
            <div class="layui-main mag0">
                <a href="#" class="logo">${fns:getConfig('productName')}</a>
                
                <!-- 显示/隐藏菜单 -->
                <a href="javascript:;" class="seraph hideMenu icon-caidan"></a>
                <%-- 
                <!-- 顶级菜单 -->
                <ul class="layui-nav mobileTopLevelMenus" mobile>
                    <li class="layui-nav-item" data-menu="contentManagement">
                        <a href="javascript:;"><i class="seraph icon-caidan"></i><cite>${fns:getConfig('productName')}</cite></a>
                        <dl class="layui-nav-child">
                                                                        手机菜单
                            <dd class="layui-this" data-menu="contentManagement"><a href="javascript:;"><i class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite>内容管理</cite></a></dd>
                            <dd data-menu="memberCenter"><a href="javascript:;"><i class="seraph icon-icon10" data-icon="icon-icon10"></i><cite>用户中心</cite></a></dd>
                            <dd data-menu="systemeSttings"><a href="javascript:;"><i class="layui-icon" data-icon="&#xe620;">&#xe620;</i><cite>系统设置</cite></a></dd>
                            <dd data-menu="seraphApi"><a href="javascript:;"><i class="layui-icon" data-icon="&#xe705;">&#xe705;</i><cite>使用文档</cite></a></dd>
                            
                        </dl>
                    </li>
                </ul>
                <ul class="layui-nav topLevelMenus" pc>
                    <%-- pc菜单
                    <li class="layui-nav-item layui-this" data-menu="contentManagement">
                        <a href="javascript:;"><i class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite>内容管理</cite></a>
                    </li>
                    <li class="layui-nav-item" data-menu="memberCenter" pc>
                        <a href="javascript:;"><i class="seraph icon-icon10" data-icon="icon-icon10"></i><cite>用户中心</cite></a>
                    </li>
                </ul>
                --%>
                <!-- 顶部右侧菜单 -->
                <ul class="layui-nav top_menu">
                    <li class="layui-nav-item" pc>
                        <a href="javascript:;" class="clearCache"><i class="layui-icon" data-icon="&#xe640;">&#xe640;</i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>
                    </li>
                    <%--
                    <li class="layui-nav-item lockcms" pc>
                        <a href="javascript:;"><i class="seraph icon-lock"></i><cite>锁屏</cite></a>
                    </li>
                     --%>
                    <li class="layui-nav-item" id="userInfo">
                        <a href="javascript:;">
                            <%--头像 --%>
                            <c:set var="user" value="${fns:getUser()}"/>
                            <c:if test="${empty user.photo}">
                               <i class="layui-icon nav_right">&#xe612;</i>
                            </c:if>
                            <c:if test="${not empty user.photo}">
                              <img src="${user.photo}" class="layui-nav-img userAvatar" width="35" height="35">
                            </c:if>
                               
                            <cite class="adminName">${user.name}</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd><a href="${ctx}/sys/user/info"  target="mainFrame"><i class="seraph icon-ziliao" data-icon="icon-ziliao"></i><cite>个人资料</cite></a></dd>
                            <dd><a href="${ctx}/sys/user/modifyPwd"  target="mainFrame"><i class="seraph icon-xiugai" data-icon="icon-xiugai"></i><cite>修改密码</cite></a></dd>
                            <%-- 
                            <dd><a href="${ctx}/oa/oaNotify/self"  target="mainFrame"><i class="layui-icon">&#xe606;</i>  </i><cite>我的通知</cite></a></dd>
                            
                            <dd><a href="javascript:;" class="showNotice"><i class="layui-icon">&#xe645;</i><cite>系统公告</cite><span class="layui-badge-dot"></span></a></dd>
                            <dd pc><a href="javascript:;" class="functionSetting"><i class="layui-icon">&#xe620;</i><cite>功能设定</cite><span class="layui-badge-dot"></span></a></dd>
                            <dd pc><a href="javascript:;" class="changeSkin"><i class="layui-icon">&#xe61b;</i><cite>更换皮肤</cite></a></dd>
                            --%>
                            <dd><a href="${ctx}/logout" class="signOut"><i class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <!-- 左侧导航 -->
        <div class="left-nav layui-side layui-bg-black">
            <div id="side-nav">
                <ul id="nav">
                    <c:set var="menuList" value="${fns:getMenuList()}"/>
					<c:forEach items="${menuList}" var="menu1" varStatus="menu1IdxStatus">
					    <c:if test="${menu1.parentId eq '1' && menu1.isShow eq '1'}">
					        <li>
					        <c:if test="${empty menu1.href}">
					            <a href="javascript:;"><i class="layui-icon"></i><cite>${menu1.name}</cite>
					        </c:if>
					        <c:if test="${not empty menu1.href}">
					            <a data-url="${fn:indexOf(menu1.href, '://') eq -1 ? ctx : ''}${menu1.href}" target="mainFrame"><cite>${menu1.name}</cite>
					        </c:if>
					        <%--二级菜单 --%>
					        <c:set var="menu2Num" value="0"/>
					        <c:forEach items="${menuList}" var="menu2" varStatus="menu2IdxStatus">
					            <c:if test="${menu2.parentId eq menu1.id && menu2.isShow eq '1'}">
					                <c:if test="${menu2Num == 0}">
					                    <i class="layui-icon nav_right">&#xe625;</i>
					                    </a>
					                    <ul class="sub-menu">
					                    <c:set var="menu2Num" value="1"/>
					                </c:if>
					                <li>   
					                <c:if test="${empty menu2.href}">
					                    <a href="javascript:;"><i class="layui-icon">&#xe602;</i><cite>${menu2.name}</cite>
					                </c:if>
					                <c:if test="${not empty menu2.href}">
					                    <a data-url="${fn:indexOf(menu2.href, '://') eq -1 ? ctx : ''}${menu2.href}" target="mainFrame"><i class="layui-icon">&#xe602;</i><cite>${menu2.name}</cite>
					                </c:if>   
					                <%--三级菜单 --%>
					                <c:set var="menu3Num" value="0"/>
					                <c:forEach items="${menuList}" var="menu3" varStatus="menu3IdxStatus">
					                    <c:if test="${menu3.parentId eq menu2.id && menu3.isShow eq '1'}">
					                        <c:if test="${menu3Num == 0}">
					                            <i class="layui-icon nav_right">&#xe625;</i>
					                            </a>
					                            <ul class="sub-menu">
					                            <c:set var="menu3Num" value="1"/>
					                        </c:if>
					                        <li>   
					                        <c:if test="${empty menu3.href}">
					                            <a href="javascript:;"><i class="layui-icon">&#xe602;</i><cite>${menu3.name}</cite></a>
					                        </c:if>
					                        <c:if test="${not empty menu3.href}">
					                            <a data-url="${fn:indexOf(menu3.href, '://') eq -1 ? ctx : ''}${menu3.href}" target="mainFrame"><i class="layui-icon">&#xe602;</i><cite>${menu3.name}</cite></a>
					                        </c:if> 
					                    </c:if>  
					                </c:forEach>
					                <c:if test="${menu2Num == 0}">
					                    </li>
					                </c:if>
					                <c:if test="${menu2Num != 0}">
					                    </ul></li>
					                </c:if>
					            </c:if>
					        </c:forEach>
					        <c:if test="${menu2Num == 0}">
					            </li>
					        </c:if>
					        <c:if test="${menu2Num != 0}">
					            </ul></li>
					        </c:if>
					    </c:if>
					</c:forEach>
                </ul>
            </div>
        </div>
        <!-- 右侧内容 -->
        <div class="layui-body layui-form" style="padding-left: 10px;">
            <iframe id="mainFrame" name="mainFrame" src="${ctx}/indexWelcome" style="overflow:visible;" scrolling="yes" frameborder="no" width="100%" height="650"></iframe>
            <%-- 
            <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
                <ul class="layui-tab-title top_tab" id="top_tabs">
                    <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>后台首页</cite></li>
                </ul>
                <ul class="layui-nav closeBox">
                  <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
                    <dl class="layui-nav-child">
                      <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#x1002;</i> 刷新当前</a></dd>
                      <dd><a href="javascript:;" class="closePageOther"><i class="seraph icon-prohibit"></i> 关闭其他</a></dd>
                      <dd><a href="javascript:;" class="closePageAll"><i class="seraph icon-guanbi"></i> 关闭全部</a></dd>
                    </dl>
                  </li>
                </ul>
                <div class="layui-tab-content clildFrame">
                    <div class="layui-tab-item layui-show">
                        <iframe id="mainFrame" name="mainFrame" src="" style="overflow:visible;" scrolling="yes" frameborder="no" width="100%" height="650"></iframe>
                    </div>
                </div>
            </div>
            --%>
        </div>
        <!-- 底部 -->
        <div class="layui-footer footer">
            <p><span>铪星创新 @2019 </span>　</p>
        </div>
    </div>

    <!-- 移动导航 -->
    <div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
    <div class="site-mobile-shade"></div>

    <script type="text/javascript" src="${ctxStatic}/layui/layui/layui.js"></script>
    <script type="text/javascript" src="${ctxStatic}/layui/js/index.js"></script>
    <script type="text/javascript" src="${ctxStatic}/layui/js/cache.js"></script>

</body>
</html>